<route lang="yaml">
meta:
  layout: false      # 不使用的布局组件
</route>
<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();

const isLogin = () => {
    localStorage.setItem('token', 'your_token_value'); // 模拟登录，存储 token
    router.push('/admin');
};

</script>

<template>
    <div>
        <h1>Login</h1>
        <p>Welcome to the Login Page!</p>
        <el-button type="primary" @click="isLogin">登录</el-button>
        <el-button type="primary" @click="router.push('/')">index</el-button>
        
    </div>
</template>
<style scoped></style>
